enum UserAction { Change }

class UserState {
  String name;

  // 状态的初始化方法
  UserState.initState() : name = "fauks";
}

// 创建reducer
UserState getReducer(UserState userState, action) {
  if (action == UserAction.Change) {
    userState.name = userState.name + "a";
  }
  return userState;
}
